#pragma once

#include <iostream>
using namespace std;

class Date
{
	friend ostream operator<<(ostream& out, const Date& d);
public:
	void Print();
	Date(int year = 0, int month = 0, int day = 0)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	Date operator+(int num);
	Date operator-(int num);
	int operator-(const Date t);

	Date& operator+=(int num);
	Date& operator-=(int num);

	int getDate();
	void getDateAdd(Date& t, int num);
	void getDateDel(Date& t, int num);
	Date& operator++();
	Date operator++(int);

	bool operator==(const Date& t);
	bool operator>(const Date& t);
	bool operator>=(const Date& t);
	bool operator<(const Date& t);
	bool operator<=(const Date& t);

	//void operator<<(ostream& out);
private:
	int _year;
	int _day;
	int _month;
};



